/* 传染病报告卡*/
//根据诊断判断是否有传染病

function isInfectionsDisease(sql){
	debugger;
	if (valueArr["p_100_105002_429"]=="1"){
		var urlCom = rootUrl+"/basicinformationquery/basequery";
		var params = {params:JSON.stringify({sqlId:10000056,bak01:sql})};
		$.when($.get(urlCom, params)).done(function(data){
			debugger;
			if(data.list&&data.list.length>0){
				cardCheck();
			}
		})
	}
}
//首页诊断查看报告卡
function checkDiagnoseDisease(){
	var ifedit = 1;
	cardCheckShow(ifedit);
}
function cardCheck() {
	var ifedit = 0;
	cardCheckShow(ifedit);
}
function cardCheckShow(ifedit){
	var vaa01_o = $("#vaa01").val();
	var vac01_o = $("#vac01").val();
    var url =mencard+"/yygr/yygr/mencard/Infection_increased.jsp?"+"vaa01="+vaa01_o+"&vaa07="+vac01_o+"&type=0&edit="+ifedit+"&jsessionids="+jsessionids;
//    var url ="http://192.168.1.166:8080/mrsweb/yygr/yygr/mencard/Infection_increased.jsp?"+"vaa01="+vaa01_o+"&vaa07="+vac01_o+"&type=0&edit="+ifedit+"&jsessionids="+jsessionids;
    layer.open({
        type: 2,
        title: '传染病报告卡',
        shadeClose: false,
        shade: 0.1,
        maxmin: true,
        area: ["80%", '95%'],
        content: url,
        cancel: function () {
        },
        success: function () {
        },
        min: function (layero) {
        },
        restore: function (layero) {

        }
    });
}